package com.ideal.frame.institutions.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class OrganizationTask {

    @Autowired
    private InstitutionsOrganizationService organizationService;


    @Scheduled(cron = "0 0 0/1 * * ?")
    public void scheduled(){
        log.info("=====>>>>>使用cron  {}",System.currentTimeMillis());
        organizationService.xml();
    }
}
